package org.pf.base.pfStorages
{
	import flash.events.EventDispatcher;
	
	
	/**
	 * ...
	 * @author zeksa'
	 */
	public class PFStorageBodySprites 
	{
		protected var _sprites:Array;
		protected var _spriteNames:Array;
		protected var _size:int;
		
		public function PFStorageBodySprites (spriteNames:Array)
		{
			_size = 0;
			_sprites = new Array();
			_spriteNames = spriteNames;
			generate_sprites();
		}
		
		public final function get_image_texture_class(textureName:String):Class
		{
			var m_class:Class;
			for (var i:int = 0; i < _sprites.length; i++)
			{
				if (_sprites[i][0] == textureName)
				{
					m_class= _sprites[i][1];
				}
			}
			return m_class;
		}
		
		public function link_sprites_classes(spriteName:String):Array
		{
			return null;
		}
		public final function generate_sprites():void
		{
			for (var i:int = 0; i < _spriteNames.length; i++)
			{
				_sprites.push(link_sprites_classes(_spriteNames[i]));
				_size++;
				 (_spriteNames[i]);
			}
		}
		
		public function get size():int 
		{
			return _size;
		}
		
		public function set size(value:int):void 
		{
			_size = value;
		}
	
	}

}